projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d83df5a
)
placesview: Don't do the same thing twice
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 9 May 2020 23:41:30 +0000
(19:41 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 9 May 2020 23:41:30 +0000
(19:41 -0400)
When the schema is supported, we want to remove
the error style class, not add it again. Pointed
out by RafaĆ Mikrut.
Fixes: #2724
gtk/gtkplacesview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacesview.c
b/gtk/gtkplacesview.c
index 290ac976ace30a3e197c7c9b580101f4234ddf44..8522372a435aced205504f23e36333a158131813 100644
(file)
--- a/
gtk/gtkplacesview.c
+++ b/
gtk/gtkplacesview.c
@@
-1890,7
+1890,7
@@
out:
if (scheme && !supported)
gtk_widget_add_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
else
- gtk_widget_
add
_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
+ gtk_widget_
remove
_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
g_free (address);
g_free (scheme);